#include <stdio.h>
int main(int argc,char *argv[])
{
	if(argc < 2)
	{
		printf("parameter error\n");
		return 1;
	}
	FILE *fp1 = fopen(argv[1],"r");
	FILE *fp2 = fopen(argv[2],"w");
	if(fp1 == NULL || fp2 == NULL)
	{
		printf("fail to open file\n");
		return 1;
	}
	char line[1024] = {'\0'};
	while(fgets(line,1024,fp1) != NULL)
	{
		fputs(line,fp2);
	}
	fclose(fp1);
	fclose(fp2);
	return 0;
}
